<?php /* Smarty version Smarty-3.1.16, created on 2016-11-15 08:10:14
         compiled from ".\application\view\news_list.html" */ ?>
<?php /*%%SmartyHeaderCode:14906582861ca0300c7-17125747%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c4bec20dd4f6eea3b04818343f50d462e17f7202' => 
    array (
      0 => '.\\application\\view\\news_list.html',
      1 => 1479197401,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '14906582861ca0300c7-17125747',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.16',
  'unifunc' => 'content_582861ca0e0312_40858425',
  'variables' => 
  array (
    'data' => 0,
    'v' => 0,
    'type_arr' => 0,
    'vv' => 0,
    'APP' => 0,
    'page_str' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_582861ca0e0312_40858425')) {function content_582861ca0e0312_40858425($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		
		<script type="text/javascript">
			try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
		</script>
		
		<ul class="breadcrumb">
			<li>
				<i class="icon-home home-icon"></i>
				<a href="#">首页</a>
			</li>

			<li>
				<a href="#">新闻管理</a>
			</li>
			<li class="active">文章列表</li>
		</ul><!-- .breadcrumb -->
	</div>

	<div class="page-content">
		<div class="page-header">
			<h1>
				文章列表
			</h1>
		</div><!-- /.page-header -->

		<div class="row">
			<div class="col-xs-12">
				<!-- PAGE CONTENT BEGINS -->
						<div class="table-responsive">
							<table id="sample-table-1" class="table table-striped table-bordered table-hover">
								<thead>
									<tr>
										<th class="center">
											<label>
												<input type="checkbox" class="ace" />
												<span class="lbl"></span>
											</label>
										</th>
										<th>文章标题</th>
										<th>文章类型</th>
										<th>作者</th>
										<th>发布时间</th>
										<th>更新时间</th>
										<th>内容</th>
										<th class="hidden-480">备注</th>
										<th class="hidden-480" style='width:120px'>操作</th>
									</tr>
								</thead>	
								<tbody>
								    <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
									<tr>
										<td class="center">
											<label>
												<input type="checkbox" class="ace" value="id[]" />
												<span class="lbl"></span>
											</label>
										</td>
										<td>
											<a href="#"><?php echo $_smarty_tpl->tpl_vars['v']->value['title'];?>
</a>
										</td>
										<td>
										<?php  $_smarty_tpl->tpl_vars['vv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['vv']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['type_arr']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['vv']->key => $_smarty_tpl->tpl_vars['vv']->value) {
$_smarty_tpl->tpl_vars['vv']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['vv']->key;
?>
											<?php if ($_smarty_tpl->tpl_vars['v']->value['type']==$_smarty_tpl->tpl_vars['vv']->value['tid']) {?>
											<?php echo $_smarty_tpl->tpl_vars['vv']->value['name'];?>

											<?php }?>
										<?php } ?>
										</td>
										<td><?php echo $_smarty_tpl->tpl_vars['v']->value['author'];?>
</td>
										<td><?php echo date('Y-m-d',$_smarty_tpl->tpl_vars['v']->value['publish_time']);?>
</td>
										<td><?php echo date('Y-m-d',$_smarty_tpl->tpl_vars['v']->value['update_time']);?>
</td>
										<td><?php echo $_smarty_tpl->tpl_vars['v']->value['content'];?>
</td>
										<td class="hidden-480"><?php echo $_smarty_tpl->tpl_vars['v']->value['remark'];?>
</td>
										<td class="hidden-480 center">
											<a href="<?php echo $_smarty_tpl->tpl_vars['APP']->value;?>
/news/edit-id-<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
.html" class="btn btn-xs btn-info">编辑</a>
											<a href="<?php echo $_smarty_tpl->tpl_vars['APP']->value;?>
/news/del-id-<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
.html" class="btn btn-xs btn-danger">删除</a>
										</td>
									</tr>
									<?php } ?>
								</tbody>
							</table>
			            </div>
                <!-- PAGE CONTENT ENDS -->
     			<?php echo $_smarty_tpl->tpl_vars['page_str']->value;?>

            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.page-content -->
</div><!-- /.main-content -->			

<script>
$().ready(function(){
	$("table th input:checkbox").bind('click',function(){
		  var that = this;
		  $(this).closest('table').find('tr > td:first-child input:checkbox')
		    .each(function() {
		      this.checked = that.checked;
		      $(this).closest('tr').toggleClass('selected');
		    });
	});
})
</script>
							
<?php echo $_smarty_tpl->getSubTemplate ("footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
